<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ include file="/WEB-INF/jspf/taglibs.jspf"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<div class="p-h-md p-v bg-white box-shadow pos-rlt">
	  <h3 class="no-margin">广告计划管理</h3>
	</div>
	<div class="p-md">
	  <div class="panel panel-default">
	    <div class="panel-heading">广告计划列表</div>
	    <table class="table table-bordered table-hover bg-white">
      <thead>
        <tr>
          <th>广告计划名</th>
          <th>起始时间</th>
          <th>结束时间</th>
          <th>花费</th>
          <th>曝光量</th>
          <th>点击量</th>
          <th>点击率</th>
          <th>点击均价</th>
          <th>平均千次展示费用</th>
          <th>操作</th>
        </tr>
      </thead>
      <tbody>
        </tbody><colgroup><col>
        <col width="11%">
        <col width="11%">
        <col width="7%">
        <col width="9%">
        <col width="9%">
        <col width="7%">
        <col width="12%">
        <col width="14%">
        <col width="6%">
        </colgroup>
        <tbody>
        <c:if test="${!empty form.campaigns}">
	        <c:forEach items="${form.campaigns }" varStatus="i" var="campaign">
	        <tr>
	          <td>
	            <a href="/campaigns/sitetype?sitesetType=${campaign.sitesetType }">${campaign.cname}</a>
	          </td>
	          <td>
	            <fmt:formatDate value="${campaign.startAt }" pattern="yyyy-MM-dd"/>
	          </td>
	          <td>
	          </td>
	          <td>￥<fmt:formatNumber value="${campaign.cost }" maxFractionDigits="3" /></td>
	          <td>${campaign.pv }</td>
	          <td>${campaign.pc }</td>
	          <td><fmt:formatNumber value="${campaign.ctr }" maxFractionDigits="3" />%</td>
	          <td>￥<fmt:formatNumber value="${campaign.costPerClick }" maxFractionDigits="3" /></td>
	          <td>￥<fmt:formatNumber value="${campaign.costPerView }"  maxFractionDigits="3" /></td>
	          <td>
	          <label class="ui-switch bg-info">
	            <input type="checkbox" class="ng-valid ng-dirty" checked="checked" disabled>
	            <i></i>
	          </label>
	          </td>
	        </tr>
	        </c:forEach>
        </c:if>
      </tbody>
    </table>
	  </div>
	</div>
</body>
</html>